import "./css/style.scss";
import "./banner/swiper-bundle.css";
import axios from "axios";
import Swiper from "./banner/swiper-bundle";
import "./assert/iconfont/iconfont.css";
/////////引入vue
import tab from "./vue/tab.vue";
import Vue from "vue";
/////////////////////swiper
axios.get("/banner").then((res) => {
    console.log(res.data);
    const page = document.querySelector(".page");
    console.log(page)
    page.innerHTML = res.data.map((item) => {
        return `<div class="swiper-slide">
                    <img src="${item.img}">
                </div>`
    }).join("")
})
/////////////////swiper
const mySwiper=new Swiper(".swiper-container",{
    loop:true,
    autoplay:true
})
////////////////vue
const vue= new Vue({
    el:"#app",
    render(h){
        return h(tab)
    }
})